import 'package:dustbin_sort/model/res_type_entity.dart';

resTypeEntityFromJson(ResTypeEntity data, Map<String, dynamic> json) {
	if (json['type'] != null) {
		data.type = json['type']?.toInt();
	}
	if (json['msg'] != null) {
		data.msg = json['msg']?.toString();
	}
	return data;
}

Map<String, dynamic> resTypeEntityToJson(ResTypeEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['type'] = entity.type;
	data['msg'] = entity.msg;
	return data;
}